package com.it.blog.service;


import com.it.blog.domain.Article;
import com.it.blog.domain.ArticleType;
import com.it.blog.dto.PlaceOnFileDTO;
import com.it.blog.query.ArticleQuery;

import java.util.List;

public interface IArticleService {
    List<Article> findAll();
    Article findOne(Long id);
    List<Article> queryPage(ArticleQuery articleTypeQuery);
    void addArticle(Article articleType);
    void updateArticle(Article articleType);
    void deleteArticle(Long id);
    void batchArticles(Long[] ids);
    List<ArticleType> getTypeTree(Long id);
    List<PlaceOnFileDTO> getArticleTimeStatistics();
    List<Article> getRelatedArticles(Long id);

    List<Article> getArchiveDetail(String yearMonth);

    List<Article> findAllArticle();
}
